// cookic的封装
import { useCookies } from "@vueuse/integrations/useCookies";
const cookie = useCookies();
const TokenKey = "admin-token";

// 获取
export const getToken = () => {
  return cookie.get(TokenKey);
};
// 设置
export const setToken = (val) => {
  return cookie.set(TokenKey, val);
};
// 清除
export const removeToken = () => {
  return cookie.remove(TokenKey);
};
